package com.ckerchina.admin.ckadmin.consts;

public enum JPushAuth {

	GongZhang("", "", "");

	JPushAuth(String app, String appKey, String masterSecret) {
		this.app = app;
		this.appKey = appKey;
		this.masterSecret = masterSecret;
	}

	public static JPushAuth getAuthByApp(String app) {
		for (JPushAuth auth : JPushAuth.values()) {
			if (auth.getApp().equals(app)) {
				return auth;
			}
		}
		return null;
	}

	private String app;

	private String appKey;

	private String masterSecret;

	public String getApp() {
		return app;
	}

	public String getAppKey() {
		return appKey;
	}

	public String getMasterSecret() {
		return masterSecret;
	}

}
